using System;
using System.Collections.Generic;
using System.Text;

namespace Castle.Facilities.PolicyInjection
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
    public class RuleConfigurationAttribute : Attribute
    {
        private IList<string> _configurationAttributeNameCollection;

        public IList<string> ConfigurationAttributeNameCollection
        {
            get
            {
                return _configurationAttributeNameCollection;
            }
        }

        public RuleConfigurationAttribute(params string[] configurationAttributeNameCollection)
        {
            _configurationAttributeNameCollection = new List<string>();
            foreach (string configurationAttributeName in configurationAttributeNameCollection)
            {
                _configurationAttributeNameCollection.Add(configurationAttributeName);
            }
        }
    }
}
